package cn.edu.gcu.PraticalTraining.repository;

import java.util.ArrayList;

import org.jboss.logging.Param;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import cn.edu.gcu.PraticalTraining.domain.Propaganda;
import cn.edu.gcu.PraticalTraining.domain.User;

public interface PropagandaRepository extends CrudRepository<Propaganda, Long> {
	public  ArrayList <Propaganda> findAll();
	@Query("select u from Propaganda u where u.title like %?1% and u.category like %?2%")
	public   ArrayList <Propaganda> findbytitleandnamelike(String title,String name);
	 //u.title like %?1% and
}
